package huzh.foundation.dao;

import java.sql.Connection;
import java.sql.SQLException;

/**
 *<p>title:IBaseDAO</p>
 *<p>description:</p>
 * @since 2014-6-8
 * @author huzh
 * @version 1.0
 */
public interface IBaseDAO extends Cloneable{
    
    /**
     * @return
     */
    public abstract Object clone();

    /**
     * @param paramString
     * @return
     * @throws SQLException
     */
    public abstract Connection getConnectionByTaskName(String paramString) throws SQLException;

    /**
     * @param paramString
     * @return
     * @throws SQLException
     */
    public abstract Connection getConnectionByDatabaseName(String paramString) throws SQLException;

    /**
     * @param paramString
     * @param paramConnection
     * @throws SQLException
     */
    public abstract void closeConnectionByTaskName(String paramString, Connection paramConnection) throws SQLException;

    /**
     * @param paramString
     * @param paramConnection
     * @throws SQLException
     */
    public abstract void closeConnectionByDatabaseName(String paramString, Connection paramConnection) throws SQLException;
}
